package com.aoxon.cargo.util;


/**
 * 文件保存路径管理
 * @author ZZJ
 *
 */
public class FileDirectories {
	
	/**
	 * 返回文件缓存保存的路径
	 * @return
	 */
	public static String getFileCachePath(){
		if(EnvironmentUtil.hasSDCard()){
			return EnvironmentUtil.getRootFilePath() + "nahuo/files/";
		}else{
			return EnvironmentUtil.getRootFilePath() + "com.aoxon.cargo/files/";
		}
		
	}

	/**
	 * 返回图片保存的路径
	 * @return
	 */	
	public static String getPicturePath(){
		if(EnvironmentUtil.hasSDCard()){
			return EnvironmentUtil.getRootFilePath() + "nahuo/picture/";
		}else{
			return EnvironmentUtil.getRootFilePath() + "com.aoxon.cargo/picture/";
		}
		
	}
	
	
}
